package org.jeecg.modules.basic.entry.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.basic.entry.entity.LwgyAbnormalAction;
import org.jeecg.modules.basic.entry.mapper.LwgyAbnormalActionMapper;
import org.jeecg.modules.basic.entry.service.ILwgyAbnormalActionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description: 学生行为异常表
 * @Author: jeecg-boot
 * @Date: 2021-03-29
 * @Version: V1.0
 */
@Service
public class LwgyAbnormalActionServiceImpl extends ServiceImpl<LwgyAbnormalActionMapper, LwgyAbnormalAction> implements ILwgyAbnormalActionService {

    @Autowired
    private LwgyAbnormalActionMapper lwgyAbnormalActionMapper;

    /**
     * 返回一个IPage对象 作为参数给页面 Result.Ok（Ipage）
     * @param page
     * @param queryWrapper
     * @param list
     * @return
     */
    @Override
    public IPage<LwgyAbnormalAction> end(Page<LwgyAbnormalAction> page, QueryWrapper<LwgyAbnormalAction> queryWrapper, List<LwgyAbnormalAction> list) {
        IPage<LwgyAbnormalAction> lwgyAbnormalActionPage = new Page<>();
        lwgyAbnormalActionPage.setRecords(list);
        return lwgyAbnormalActionPage;
    }

    /**
     * 取异常行为信息对象
     * @return
     */
    @Override
    public List<LwgyAbnormalAction> selectAbnotmalList() {
        List<LwgyAbnormalAction> lwgyAbnormalAction = lwgyAbnormalActionMapper.selectAbnotmalList();
        return lwgyAbnormalAction;
    }


  /*  @Override
    public String getLayer(String roomNum) {
        String Layer = mapper.getLayer(roomNum);
        return Layer;
    }*/

    /**
     * 取单元
     * @param layer
     * @return
     */
    /*  @Override
  public String getunit(String layer) {
        String unit = mapper.getUnit(layer);
        return unit;
    }*/

    /**
     * 取楼号
     * @param unit
     * @return
     */
  /*  @Override
    public String getbuilding(String unit) {
        String building = mapper.getBuilding(unit);
        return building;
    }
*/
    /**
     * 取校区
     * @param building
     * @return
     */
 /*   @Override
    public String getcampus(String building) {
        String campus = mapper.getCampus(building);
        return campus;
    }*/

}
